#include <stdio.h>
#include "mpi.h"
#include <stdlib.h>
int main(int ac, char **av){
	int num_process, myid;
	float *buf, data[10];
	MPI_Init(&ac, &av);
	MPI_Comm_rank(MPI_COMM_WORLD, &myid);
	MPI_Comm_size(MPI_COMM_WORLD, &num_process);
	
	if(myid == 0)
		buf = (float *)malloc(num_process * sizeof(float) * 10);
	MPI_Gather(data, 10, MPI_FLOAT, buf, 10 * num_process , MPI_FLOAT, 0, MPI_COMM_WORLD);


}


